package com.guigu.www.denghao.controller;

import com.guigu.www.denghao.service.DHRoleService;
import com.guigu.www.pojo.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/DHRoleController")
public class DHRoleController {

    @Autowired
    private DHRoleService dhRoleService;

    @PostMapping("/findAllRole")
    public List<Role> findAllRole(){
        return dhRoleService.findAllRole();
    }
}
